<!doctype html>
<html lang="en"><head>
    <meta charset="utf-8">
    <title>微笑长理</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
        <link rel="shortcut icon" href="Static/images/icon.png" />

   
    <link rel="stylesheet" type="text/css" href="Static/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="Static/lib/font-awesome/css/font-awesome.css">
    <script src="Static/lib/jquery-1.11.1.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="Static/stylesheets/theme.css">
    <link rel="stylesheet" type="text/css" href="Static/stylesheets/premium.css">
    <script type="text/javascript">
      function  delteacher(id){
      
       window .location.href = "/delacade?id="+id;
      }

    
    </script>
</head>
<body class=" theme-blue">

    <!-- Demo page code -->

    <script type="text/javascript">
        $(function() {
            var match = document.cookie.match(new RegExp('color=([^;]+)'));
            if(match) var color = match[1];
            if(color) {
                $('body').removeClass(function (index, css) {
                    return (css.match (/\btheme-\S+/g) || []).join(' ')
                })
                $('body').addClass('theme-' + color);
            }

            $('[data-popover="true"]').popover({html: true});
            
        });
    </script>
    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { 
            color: #fff;
        }
    </style>

    <script type="text/javascript">
        $(function() {
            var uls = $('.sidebar-nav > ul > *').clone();
            uls.addClass('visible-xs');
            $('#main-menu').append(uls.clone());
        });
    </script>
 
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
  

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
   
  <!--<![endif]-->

    <div class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="" href="index.html"><span class="navbar-brand"><span class="fa fa-paper-plane"></span> 微笑长理</span></a></div>

        <div class="navbar-collapse collapse" style="height: 1px;">
          <ul id="main-menu" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 3px;"></span> {{ user_name }}
                    <i class="fa fa-caret-down"></i>
                </a>

              <ul class="dropdown-menu">
                <li><a tabindex="-1" href="password_update.html">密码修改</a></li>
                <li class="divider"></li>
                <li><a tabindex="-1" href="sign-in.html">注销</a></li>
              </ul>
            </li>
          </ul>

        </div>
      </div>
    </div>
    

    <div class="sidebar-nav">
    <ul>
        <li><a href="#" data-target=".dashboard-menu" class="nav-header" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 课程管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="dashboard-menu nav nav-list collapse in">
            <li><a href="lesson_add.html"><span class="fa fa-caret-right"></span> 新增课程</a></li>
            <li ><a href="lesson.html"><span class="fa fa-caret-right"></span> 课程管理</a></li>

        </ul></li>

        <li ><a href="#" data-target=".premium-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 教师管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="premium-menu nav nav-list collapse">
            <li ><a href="teacher_add.html"><span class="fa fa-caret-right"></span> 新增教师</a></li>
            <li ><a href="teacher.html"><span class="fa fa-caret-right"></span> 教师管理</a></li>

        </ul></li>

        <li><a href="#" data-target=".accounts-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 学生管理 <i class="fa fa-collapse"></i></a></li>
        <li><ul class="accounts-menu nav nav-list collapse">
            <li ><a href="student_add.html"><span class="fa fa-caret-right"></span> 新增学生</a></li>
            <li ><a href="student.html"><span class="fa fa-caret-right"></span> 学生管理</a></li>
        </ul></li>

        <li><a href="#" data-target=".legal-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 班级管理<i class="fa fa-collapse"></i></a></li>
        <li>
            <ul class="legal-menu nav nav-list collapse">
            <li ><a href="class_add.html"><span class="fa fa-caret-right"></span> 新增班级</a></li>
            <li ><a href="class.html"><span class="fa fa-caret-right"></span> 班级管理</a></li>
        </ul>
        </li>
        <li><a href="#" data-target=".legal-menus" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-question-circle"></i> 字典管理<i class="fa fa-collapse"></i></a></li>
        <li>
            <ul class="legal-menus nav nav-list collapse">
            <li ><a href="dict_add.html"><span class="fa fa-caret-right"></span> 新增字典</a></li>
            <li ><a href="dict.html"><span class="fa fa-caret-right"></span> 字典管理</a></li>
        </ul>
        </li>
        <li><a href="#" data-target=".legal-men" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-comment"></i> 用户管理<i class="fa fa-collapse"></i></a></li>
        <li>
            <ul class="legal-men nav nav-list collapse">
            <li ><a href="user_add.html"><span class="fa fa-caret-right"></span> 新增用户</a></li>
            <li ><a href="user.html"><span class="fa fa-caret-right"></span> 用户管理</a></li>
        </ul>
        </li>
        <li ><a href="#" data-target=".premium-menus" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 新闻管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="premium-menus nav nav-list collapse">
            <li ><a href="news_add.html"><span class="fa fa-caret-right"></span> 新增新闻</a></li>
            <li ><a href="news.html"><span class="fa fa-caret-right"></span> 新闻管理</a></li>
        </ul>
        </li>
        <li ><a href="#" data-target=".premium-menuss" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> MMD管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="premium-menuss nav nav-list collapse">
            <li ><a href="mmd_add.html"><span class="fa fa-caret-right"></span> 新增MMD</a></li>
            <li ><a href="mmd.html"><span class="fa fa-caret-right"></span> MMD管理</a></li>
        </ul>
        </li>
        <li ><a href="#" data-target=".premium-menusss" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 学院活动管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="premium-menusss nav nav-list collapse">
            <li ><a href="acade_add.html"><span class="fa fa-caret-right"></span> 新增学院活动</a></li>
            <li ><a href="acade.html"><span class="fa fa-caret-right"></span> 学院活动管理</a></li>
        </ul>
        </li>
        <li ><a href="#" data-target=".premium-menussss" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 投票管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="premium-menussss nav nav-list collapse">
            <li ><a href="election_add.html"><span class="fa fa-caret-right"></span> 新增投票</a></li>
            <li ><a href="election.html"><span class="fa fa-caret-right"></span> 投票管理</a></li>
        </ul>
        </li>
                <li><a href="teacher_rollcall.html" class="nav-header" target="blank"><i class="fa fa-fw fa-heart"></i>出勤查看</a></li>
        <li><a href="excel_upload.html" class="nav-header" target="blank"><i class="fa fa-fw fa-heart"></i>数据导入</a></li>


    </ul>
</div>


    <div class="content">
        <div class="header">
            
            <h1 class="page-title">学院活动管理</h1>
                    <ul class="breadcrumb">
            <li><a href="index.html">首页</a> </li>
            <li class="active">学院活动管理</li>
        </ul>

        </div>
        <div class="main-content">

<div class="btn-toolbar list-toolbar">
  <div class="btn-group">
  </div>
</div>
<table class="table">
  <thead>
    <tr>
      <th style="display:none;">#</th>
      <th>新闻主标题</th>
        <th>学院名称</th>
      <th style="width: 7em;"></th>
    </tr>
  </thead>
  <tbody>
  {% for acade in result %}
      <form action="updatedeluser" method="get" >
    <tr>
      <td style="display:none;" >{{ acade.id }}</td>
      <td>{{ acade.title }}</td>
      <td>{% for foo in College %}
            {% ifequal acade.academy foo.college_value %}
              {{ foo.college_name }}
            {% endifequal %}
        {% endfor %}</td>
      <td>
          <button type="button" onclick="delteacher('{{ acade.id }}')" ><i class="fa fa-trash-o"></i></button>
      </td>
    </tr>
      </form>
  {% endfor %}
  </tbody>

</table>
<ul class="pagination">
  {% for page_number in result.paginator.page_range %}
    {% ifequal page_number  topics.number %}
      {{ page_number }}
    {% else %}
      <li><a href="?page={{ page_number }}">{{ page_number }}</a></li>
    {% endifequal %}
  {% endfor %}
</ul>

<div class="modal small fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel">删除提醒！</h3>
        </div>
        <div class="modal-body">
            <p class="error-text"><i class="fa fa-warning modal-icon"></i>你确定要删除该条纪录?<br>本次操作不能被撤销.</p>
        </div>
        <div class="modal-footer">
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">退出</button>
            <button class="btn btn-danger" data-dismiss="modal">删除</button>
        </div>
      </div>
    </div>
</div>


            <footer>
                <hr>

                
                <p class="pull-right">Collect from <a href="#" title="网页模板" target="_blank">Django</a></p>
                <p>© 2016 <a href="#" target="_blank">Powered By Carpenter Studio</a></p>
            </footer>
        </div>
    </div>


    <script src="Static/lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
  
        
    </script>
  
</body>
</html>
